﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ParkingApp.ParkingSlot.Simulator.Lib;

namespace ParkingApp.ParkingSlot.Simulator.ConsoleHost {
    class Program {
        static void Main(string[] args) {
            var simulator = new ParkingSlotAvailabilitySimulator();
            List<Slot> freeSlots = simulator.GetAvailableSlots();
            if (freeSlots.Count != 0) {
                simulator.AllocateSlot(freeSlots[0]);
                simulator.FreeUpSlot(freeSlots[0]);
            }
        }
    }
}
